package com.example.demo.service;

import com.example.demo.dto.ModifyOrderRquest;
import com.example.demo.dto.OrderItemConfirmRequest;
import com.example.demo.dto.OrdersPageRequest;
import com.example.demo.dto.PlaceOrderRequest;
import com.example.demo.entity.Orders;

import java.util.List;

/**
 * OrdersService
 *
 * @author liujin
 * @date 2020/12/18 14:00
 */
public interface OrdersService {

    /**
     * 功能描述: 下单
     * @param: [request]
     * @author: liujin
     * @date: 2020/12/18 14:17
     */
    void placeOrder(PlaceOrderRequest request);

    /**
     * 功能描述: 修改订单
     * @param: [request]
     * @author: liujin
     * @date: 2020/12/18 15:58
     */
    void modifyOrder(ModifyOrderRquest request);

    /**
     * 功能描述: 查看订单
     * @param: [request]
     * @author: liujin
     * @date: 2020/12/18 16:50
     */
    List<Orders> page(OrdersPageRequest request);

    /**
     * 功能描述: 确认已完成上菜的菜品
     * @param: [orderItemId]
     * @author: liujin
     * @date: 2020/12/18 19:20
     */
    void confirm(OrderItemConfirmRequest request);
}
